package com.example.pcl.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 学生评价表，记录学生对心理咨询师的评价
 * </p>
 *
 * @author xx
 * @since 2024-12-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("student_feedback")
@Schema(name="StudentFeedback对象", description="学生评价表，记录学生对心理咨询师的评价")
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class StudentFeedback implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "评价ID")
    @TableId(value = "feedback_id", type = IdType.AUTO)
    private Integer feedbackId;

    @Schema(description = "预约ID")
    private Integer appointmentId;

    @Schema(description = "学生ID")
    private Integer studentId;

    @Schema(description = "心理咨询师ID")
    private Integer counselorId;

    @Schema(description = "评分 (1: 非常差, 2: 较差, 3: 一般, 4: 较好, 5: 非常好)")
    private Integer rating;

    @Schema(description = "评价内容")
    private String comment;

    @Schema(description = "是否匿名 (0: 否, 1: 是)")
    private Integer isAnonymous;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;


    public static final Integer VERY_POOR = 1;
    public static final Integer POOR = 2;
    public static final Integer GENERAL = 3;
    public static final Integer BETTER = 4;
    public static final Integer VERY_GOOD = 5;
}
